(function(){
	
	Ext.define('AppView.sys.menu.MenuForm',{
		extend:'AppView.base.BaseForm',
		alias:'widget.menuform',
		defaults:{xtype:'textfield',labelWidth:60,anchor:'100%'},
		url:'/sys/menu/save.do',
		requires:['AppView.public.comboBox.MenuTreePicker'],
		items:[
			{
				hidden:true,
				name:'id'
			},
			{
				fieldLabel:'名称',
				allowBlank:false,
				name:'menuName'
			},
			{
				fieldLabel:'编码',
				name:'menuCode'
			},
			{
				fieldLabel:'主类',
				name:'menuClass'
			},
			{
				xtype:'menutreepicker',
				fieldLabel : '所属菜单',
				value:'',
				name : 'parentId'
			}
		],
		handleLoadSuccess:function(data){
		}
	})
	
	Ext.define('AppView.sys.menu.MenuWin',{
		extend:'AppView.base.FormWin',
		viewUrl:'/sys/menu/view.do',
		height:250,
		title:'菜单',
		items:[
			{
				xtype:'menuform'
			}
		]
	})
})()